IIS Administration Script Utility (adsutil)

Summary:

This is an IIS administration utility that uses VBScript with Active Directory Service Interfaces (ADSI) to manipulate the IIS configuration. This script should be run using CScript, which is installed with Windows Script Host.

There is also a sample executable version of Adsutil.vbs, Adsutil.exe, that accepts the same parameters as Adsutil.vbs.

Usage:

adsutil COMMAND <path> [<param>...]

Commands:

GET Path Display chosen parameter.
SET Path Value Assign a new value.
ENUM path ["/P" | "/A"] Enumerate all parameters for the path.
/P - Enumerate the paths only (no data).
/A - Enumerate all data that can be set on the node.
ENUM_ALL ["/P" | "/A"] Enumerate all parameters.
/P - Enumerate the paths only (no data).
/A - Enumerate all data that can be set on the node.
DELETE path Delete the path or parameter.
CREATE path [KeyType] Create the path and assign it the KeyType.
APPCREATEINPROC Path Create an in-process application.
APPCREATEOUTPROC Path Create an out-of-process application.
APPDELETE Path Delete the application (if present).
APPUNLOAD Path Unload an out-of-process application.
APPGETSTATUS Path Get status of the application.
FIND Path Find the paths where a parameter is set.
START_SERVER Path Starts the server.
STOP_SERVER Path Stop the Web site.
PAUSE_SERVER Path Pause the Web site.
CONTINUE_SERVER Path Unpauses the Web site.
HELP Prints all available commands.

Notes

Examples:

adsutil GET W3SVC/1/ServerBindings -s:remotecomputer1

adsutil SET W3SVC/1/ServerBindings ":81:"

adsutil CREATE W3SVC/1/Root/MyVdir "IIsWebVirtualDir"

adsutil START_SERVER W3SVC/1 adsutil.vbs ENUM /P W3SVC


© 1997-1999 Microsoft Corporation. All rights reserved.